import { FormInstance } from 'antd/lib/form/hooks/useForm';
import React from 'react';

export interface IMetadataFormContextProps {
  fields: any;
  form: FormInstance;
}

export const MetadataFormContext = React.createContext<IMetadataFormContextProps | null>(null);

export interface IMetaFormProps {
  id: string;
  type: string;
  require?: boolean;
  refId?: string;
  enum?: { value: string }[];
  items?: { type: string; refId?: string | number };
}
